package com.lengyu.vxminiprogram.security.exception;

import com.lengyu.vxminiprogram.common.BaseConstant;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class TokenException extends RuntimeException {

    private static final long serialVersionUID = -739183828263221695L;

    private BaseConstant.Returns returns ;

    private String message ;

    public TokenException(BaseConstant.Returns returns, String msg){
        super(returns.getStatus());
        this.returns = returns;
        this.message = msg;

    }

}
